﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MacomberMapSystem.Common.Serialization;
using System.Drawing;
using System.Data.Common;

namespace MacomberMapSystem.Common.Integration
{
    /// <summary>
    /// This class holds infromation on a GIS line
    /// </summary>
    public class GIS_Line: MM_Element
    {
        #region Variable declarations
        /// <summary>The TEID of our line</summary>
        [MM_Serializable_Target(MM_Serializable_Target.enumTargetType.FieldValue)]
        public UInt64 Line_Id;

        /// <summary>The coordinates of our transmission line</summary>
        [MM_Serializable_Target(MM_Serializable_Target.enumTargetType.FieldValue)]
        public PointD[] Coordinates;

        [MM_Serializable_Target(MM_Serializable_Target.enumTargetType.FieldValue)]
        public String Company;

        [MM_Serializable_Target(MM_Serializable_Target.enumTargetType.FieldValue)]
        public UInt64 FromSub;

        [MM_Serializable_Target(MM_Serializable_Target.enumTargetType.FieldValue)]
        public UInt64 ToSub;
        #endregion

          #region Initialization
        /// <summary>
        /// Initilize a new line
        /// </summary>
        /// <param name="dRd"></param>
        /// <param name="Repository"></param>
        public GIS_Line(DbDataReader dRd, MM_Repository Repository)
            : base(dRd, Repository)
        {

        }
          #endregion

    }
}
